package com.ec.common.cores.vo;


import java.util.List;

/**
 * 翻页的类
 * @author bystander
 * @date 2018/9/15
 */
public class PageResult<T> {

    private Long total;
    private Integer totalPage;
    private List<T> items;
    
    /**
     * feign需要
     */
    public PageResult() {
    	
    }

    public PageResult(Long total, List<T> items) {
        this.total = total;
        this.items = items;
    }

    public PageResult(Long total, Integer totalPage, List<T> items) {
        this.total = total;
        this.totalPage = totalPage;
        this.items = items;
    }

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public List<T> getItems() {
		return items;
	}

	public void setItems(List<T> items) {
		this.items = items;
	}
    
}
